package com.ruoyi.mode_specific.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mode_specific.mapper.ModeSpecificMapper;
import com.ruoyi.mode_specific.domain.ModeSpecific;
import com.ruoyi.mode_specific.service.IModeSpecificService;

/**
 * VIEWService业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class ModeSpecificServiceImpl implements IModeSpecificService 
{
    @Autowired
    private ModeSpecificMapper modeSpecificMapper;

    /**
     * 查询VIEW
     * 
     * @param deviceSpecificId VIEW主键
     * @return VIEW
     */
    @Override
    public ModeSpecific selectModeSpecificByDeviceSpecificId(Long deviceSpecificId)
    {
        return modeSpecificMapper.selectModeSpecificByDeviceSpecificId(deviceSpecificId);
    }

    /**
     * 查询VIEW列表
     * 
     * @param modeSpecific VIEW
     * @return VIEW
     */
    @Override
    public List<ModeSpecific> selectModeSpecificList(ModeSpecific modeSpecific)
    {
        return modeSpecificMapper.selectModeSpecificList(modeSpecific);
    }

    /**
     * 新增VIEW
     * 
     * @param modeSpecific VIEW
     * @return 结果
     */
    @Override
    public int insertModeSpecific(ModeSpecific modeSpecific)
    {
        return modeSpecificMapper.insertModeSpecific(modeSpecific);
    }

    /**
     * 修改VIEW
     * 
     * @param modeSpecific VIEW
     * @return 结果
     */
    @Override
    public int updateModeSpecific(ModeSpecific modeSpecific)
    {
        return modeSpecificMapper.updateModeSpecific(modeSpecific);
    }

    /**
     * 批量删除VIEW
     * 
     * @param deviceSpecificIds 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteModeSpecificByDeviceSpecificIds(Long[] deviceSpecificIds)
    {
        return modeSpecificMapper.deleteModeSpecificByDeviceSpecificIds(deviceSpecificIds);
    }

    /**
     * 删除VIEW信息
     * 
     * @param deviceSpecificId VIEW主键
     * @return 结果
     */
    @Override
    public int deleteModeSpecificByDeviceSpecificId(Long deviceSpecificId)
    {
        return modeSpecificMapper.deleteModeSpecificByDeviceSpecificId(deviceSpecificId);
    }
}
